package com.lvy.hczn.front.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lvy.hczn.front.system.domain.business.UpOrDownPolicy;
import com.lvy.hczn.front.business.mapper.UpOrDownPolicyMapper;
import com.lvy.hczn.front.business.service.UpOrDownPolicyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 执行中的指令记录（执行完成清除，存入历史记录中）
 *
 * @author yw
 * @date 2022-03-19 14:23:39
 **/
@Slf4j
@Service
public class UpOrDownPolicyServiceImpl extends ServiceImpl<UpOrDownPolicyMapper, UpOrDownPolicy> implements UpOrDownPolicyService {

    @Autowired
    private UpOrDownPolicyMapper upOrDownPolicyMapper;

    /**
     * 物理删除
     *
     * @param id
     * @return int
     * @author yw
     * @date 2022-03-20 11:33:55
     */
    @Override
    public int delPhysicalById(String id) {
        if (id != null) {
            return upOrDownPolicyMapper.delPhysicalById(id);
        }
        return 0;
    }
}
